import axios from '@/libs/api.request'

const DEV_URL = 'http://localhost:8888/file/upload'
const PRO_URL = 'http://localhost:8888/file/upload'

export const FILE_UPLOAD_URL = process.env.NODE_ENV === 'development' ? DEV_URL : PRO_URL

export const deleteFileByPath = (path) => {
  return axios.request({
    url: 'http://localhost:8888/file',
	  params: {'path':path},
    method: 'delete'
  })
}
/* 该api与cupload自定义组件关联，也可单独使用，但不要更改 */
